package Box2D.Collision
{
	import Box2D.Common.Math.b2Sweep;
	import Box2D.Common.b2Wrapper;
	
	public class b2TOIInput extends b2Wrapper
	{
		private var _proxyA:b2DistanceProxy;
		private var _proxyB:b2DistanceProxy;
		private var _sweepA:b2Sweep;
		private var _sweepB:b2Sweep;
		public function b2TOIInput()
		{
			super(callDirect('b2TOIInput_new'));
			_proxyA = new b2DistanceProxy(wrapper);
			_proxyB = new b2DistanceProxy(wrapper+28);
			_sweepA = new b2Sweep(wrapper+56);
			_sweepB= new b2Sweep(wrapper+92);			
		}
		
		public function get proxyA():b2DistanceProxy{return _proxyA}
		
		public function get proxyB():b2DistanceProxy{return _proxyB}
		
		public function get sweepA():b2Sweep{return _sweepA}
		public function set sweepA(value:b2Sweep):void{_sweepA.Copy(value)}
		
		public function get sweepB():b2Sweep{return _sweepB}
		public function set sweepB(value:b2Sweep):void{_sweepB.Copy(value)}
		
		// defines sweep interval [0, tMax]
		public function get tMax():Number{return getNumber(128)}
		public function set tMax(value:Number):void{setNumber(128,value)}
	}
}